package com.fhz.kotlinmvvm

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

/**
 * 时间:2023/9/14
 * @author Mr.Feng
 * 简述: TODO
 */

@BindingAdapter("img:")
fun setImageUrl(imageView:ImageView,url:String?){
    if(url != null){
        Glide.with(imageView.context).load(url).into(imageView)
    }
}
